#include <iostream>
#include<ctime>

#define N 6

using namespace std;

void display(int a[N][N]);

int main ( )
{
    int a[N][N],i,j;
    srand((unsigned int)time(0));

    for(i=0;i<N;i++)
        for(j=0;j<N;j++)
        {
            a[i][j]=rand()%10;
        }

        display(a);

        cin>>i;
        return 0;
}

void display( int a[N][N])
{
    int i,j;

    for(i=0;i<N;i++)
        for(j=0;j<N;j++)
        {
            if((i==j)||(i+j==N-1))
                cout<<"a"<<i<<j<<" "<<a[i][j]<<" ";
        }

}